3.67 \(\int \frac {2-x-2 x^2+x^3}{4-5 x^2+x^4} \, dx\)

Optimal. Leaf size=4 \[ \log (x+2) \]

[Out]

ln(2+x)

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 4, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {1586, 31} \[ \log (x+2) \]

Antiderivative was successfully verified.

[In]

Int[(2 - x - 2*x^2 + x^3)/(4 - 5*x^2 + x^4),x]

[Out]

Log[2 + x]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 1586

Int[(u_.)*(Px_)^(p_.)*(Qx_)^(q_.), x_Symbol] :> Int[u*PolynomialQuotient[Px, Qx, x]^p*Qx^(p + q), x] /; FreeQ[
q, x] && PolyQ[Px, x] && PolyQ[Qx, x] && EqQ[PolynomialRemainder[Px, Qx, x], 0] && IntegerQ[p] && LtQ[p*q, 0]

Rubi steps

\begin {align*} \int \frac {2-x-2 x^2+x^3}{4-5 x^2+x^4} \, dx &=\int \frac {1}{2+x} \, dx\\ &=\log (2+x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 4, normalized size = 1.00 \[ \log (x+2) \]

Antiderivative was successfully verified.

[In]

Integrate[(2 - x - 2*x^2 + x^3)/(4 - 5*x^2 + x^4),x]

[Out]

Log[2 + x]

________________________________________________________________________________________

fricas [A]  time = 0.77, size = 4, normalized size = 1.00 \[ \log \left (x + 2\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^3-2*x^2-x+2)/(x^4-5*x^2+4),x, algorithm="fricas")

[Out]

log(x + 2)

________________________________________________________________________________________

giac [A]  time = 0.31, size = 5, normalized size = 1.25 \[ \log \left ({\left | x + 2 \right |}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^3-2*x^2-x+2)/(x^4-5*x^2+4),x, algorithm="giac")

[Out]

log(abs(x + 2))

________________________________________________________________________________________

maple [A]  time = 0.00, size = 5, normalized size = 1.25 \[ \ln \left (x +2\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x^3-2*x^2-x+2)/(x^4-5*x^2+4),x)

[Out]

ln(x+2)

________________________________________________________________________________________

maxima [A]  time = 0.43, size = 4, normalized size = 1.00 \[ \log \left (x + 2\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^3-2*x^2-x+2)/(x^4-5*x^2+4),x, algorithm="maxima")

[Out]

log(x + 2)

________________________________________________________________________________________

mupad [B]  time = 0.02, size = 4, normalized size = 1.00 \[ \ln \left (x+2\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(x + 2*x^2 - x^3 - 2)/(x^4 - 5*x^2 + 4),x)

[Out]

log(x + 2)

________________________________________________________________________________________

sympy [A]  time = 0.07, size = 3, normalized size = 0.75 \[ \log {\left (x + 2 \right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x**3-2*x**2-x+2)/(x**4-5*x**2+4),x)

[Out]

log(x + 2)

________________________________________________________________________________________